package org.mall.modules.pojo.promotion.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.experimental.Accessors;
import org.mall.common.util.jsonschema.Long2StringSerializer;
import org.mall.common.util.jsonschema.String2LongDeserialize;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品推荐 BO
 */
@Data
@Accessors(chain = true)
public class ProductRecommendBO implements Serializable {

    /**
     * 编号
     */
    private Integer id;
    /**
     * 类型
     *
     */
    private Integer type;
    /**
     * 商品 Spu 编号
     */
    @JsonSerialize(using = Long2StringSerializer.class)
    @JsonDeserialize(using = String2LongDeserialize.class)
    private Long productSpuId;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 状态
     *
     */
    private Integer status;
    /**
     * 备注
     */
    private String memo;

    @TableField(exist = false)
    private Integer salesVolume;


    /**
     * 创建时间
     */
    private Date createTime;
    private String productSpuName;


}
